package au.edu.unsw.infs3634.gamifiedlearning;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TextView learning_page = findViewById(R.id.btlearning);
        TextView quit_home = findViewById(R.id.btquiz);
        TextView btMeeting = findViewById(R.id.btMeeting);

        // button to Learing page
        learning_page.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, Continents_list.class);
                startActivity(intent);
            }
        });

        // 跳到视频会商界面
        btMeeting.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, Video_list.class);
                startActivity(intent);
            }
        });

        // button to quiz page
        quit_home.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, Quiz_home.class);
                startActivity(intent);
            }
        });

    }
}